package book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 王圆豪
 * Date: 2024-05-24
 * Time: 20:03
 */
public class BookList {
    private Book[] books = new Book[10];
    private int effnum;

    public BookList() {
        books[0] = new Book("三国演义", "罗贯中", 15, "小说");
        books[1] = new Book("西游记", "吴承恩", 56, "小说");
        books[2] = new Book("红楼梦", "曹雪芹", 27, "小说");
        effnum = 3;
    }

    public Book getBooks(int choice) {
        return books[choice];
    }

    public void setBooks(Book books, int choice) {
        this.books[choice] = books;
    }

    public int getEffnum() {
        return effnum;
    }

    public void setEffnum(int effnum) {
        this.effnum = effnum;
    }
}
